package cn.tedu.hospitalqd.mapper;

import cn.tedu.hospitalqd.pojo.entity.Patient;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PatientMapper {
    int insert(Patient patient);
    List<Patient> select();
    Patient selectById(int id);
    void deleteById(int i);
    void update(Patient p);
    int selectCount();
    int deleteByIds1(Integer[] ids);
    void deleteByIds2(Integer... ids);
    void deleteByIds3(List<Integer> ids);
    int dynamicUpdate(Patient patient);

    int countByName(String name);
}
